package kitwee.com.kanpad;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.github.barteksc.pdfviewer.PDFView;
import com.github.barteksc.pdfviewer.listener.OnPageChangeListener;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @author GanQuan
 * @date 2018/1/26
 * kitwee.com.kanpad
 */

public class TestPdf extends BaseActivity implements OnPageChangeListener {
//    @BindView(R.id.pdf_view2)
//    PDFView pdfView;
//    @BindView(R.id.pdf_view2)
//    com.lidong.pdf.PDFView pdfView2;
//    @BindView(R.id.test)
    TextView test;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.sop_view);
        ButterKnife.bind(this);
//        pdfView.setVisibility(View.VISIBLE);
//        pdfView2.setVisibility(View.GONE);
    }

    public static void start(Context context) {
        Intent intent = new Intent();
        intent.setClass(context, TestPdf.class);
        context.startActivity(intent);
    }


    @Override
    public void onPageChanged(int page, int pageCount) {
//        setTitle(String.format("%s %s / %s", pdfFileName, page + 1, pageCount));
    }


    @OnClick(R.id.test)
    public void onClick() {
        finish();
    }
}
